package samse.exam.test1;

import android.app.Activity;
import android.graphics.Paint;
import android.os.Bundle;
import android.text.TextPaint;
import android.widget.TextView;

public class MainActivity extends Activity {
	
	TextPaint mTextPaint;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        
        TextView v = (TextView)findViewById(R.id.sum_1);
        String s;
        int a, b, c;
        a = 14;
        b = 2147483647;
        c = a * b;
        s = a + "*" + b + "=" + c;
        v.setText(s);
        
        v = (TextView)findViewById(R.id.sum_2);
        a = 24;
        c = a * b;
        s = a + "*" + b + "=" + c;
        v.setText(s);    
        
        mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG);
        v = (TextView)findViewById(R.id.info_1);
        s = "getFontMetricsInt = " + mTextPaint.getFontMetricsInt(null);
        v.setText(s);
        
    }
}